<div class="isi">
	<?php
	$atr = array('id' => 'formID',
		'class' => 'formular');
	?> 
	
	<?php 
	/*
		if(empty($sekCode) OR empty($stockCode)) {
		  echo form_open_multipart('admin_dailytrans/todayPrice', $atr);
		  echo '<ul class="fieldset"> <li><div class="mylabel">Date </div><input type="text" id="tanggal" name="tanggal" class="validate[required,custom[date]] text-input" value='.$tanggal.' />  </li> ';
	?>
	      <li>
		  <div class="mylabel"> Sekuritas </div>
		  <select name="sekCode" id="sekCode" class="text-input" >
		   <option value="">Sekuritas : </option>
		   <?php
 		     foreach ($sekList as $row) {
			   if($row->id == $sekCode){
 			     echo "<option value='$row->id' selected='selected'> $row->security_code</option>";
			   } else {
				 echo "<option value='$row->id'> $row->security_code</option>";
			   }
			 }
	       ?>
		  </select></li><li>
		  <div class="mylabel"> Stock Name </div>
		  <select name="stockCode" id="stockCode" class="text-input">
		  <option value="">StockName: </option>
		  <?php
		    foreach ($stockList as $row) {
			  if($row->id==$stockCode) {
				echo "<option value='$row->id' selected='selected'> $row->symbol</option>";
			  } else {
			    echo "<option value='$row->id'> $row->symbol</option>";
			  }
			}
		echo '</select></li></ul><br />
			  <div class="fieldset"><input type="submit" value="         Filter       " class="button"/></div>
			  <div class="clear"></div>
			  </div>';
		
		}else {
		*/
	empty($tanggal) ? $tanggal=date('Y-m-d') : $tanggal ;
	echo '<ul class="fieldset"> <li><div class="showbox">Date  :'. $tanggal.'</div>  <input type="hidden" id="tanggal" name="tanggal" class="validate[required,custom[date]] text-input" value='.$tanggal.' />  </li> </ul><br />';
	echo "<div class='warn' style='float:right;'> <h3> You may only change the column Today's Price </h3></div>";
	$warn = '<div class="warn">
			  <h3><a href="#"  onClick="$(this).closest(\'form\').submit();">Current TransDate ('. $tanggal .') cannot be retrieve,   <br />click  here to setup today\'s price </a></h3>
			 <input type="hidden" value="'.$tanggal.'" name="tanggal" />
			</div>';
	if(count($gridData)<1) {
	  echo form_open_multipart($url, $atr);
	  
	  echo $warn ;
	  echo '</form>
			<div class="clear"></div>
			</div>';
	  exit;
	}
	echo form_open_multipart('admin_dailytrans/admin_dailytrans', $atr);
	?>
	<table id="mygrid" class="display" >
	 <thead>
	  <tr>
		<th>id</th>
		<th>sekCode</th>
		<th>stockCode</th>
		<th >Sekuritas</th>
		<th >Stock Code</th>
		<th>BuyingPrice</th>
		<th>TodayPrice</th>
		<th>Avg.BuyPrice</th>
		<th>Cut-LossPrice</th>
	  </tr>            
	  </thead>
	  <tfoot>
	  <tr>
		<th class="selectMe id">id</th>
		<th class="selectMe sekCode">sekCode </th>
		<th class="selectMe stockCode">stockCode </th>
		<th width="20%" class="selectMe sekuritas">Sekuritas</th>
		<th width="20%" class="selectMe stock">Stock Code</th>
		<th width="10%">BuyingPrice</th>
		<th width="10%">TodayPrice</th>
		<th width="10%">Avg.BuyPrice</th>
		<th width="10%">Cut-LossPrice</th>
	  </tr>  
    </tfoot> 	  
	  <tbody>
		<?php 
		 $n=1;
		 foreach($gridData as $isiGrid) {
		   echo "<tr id='$isiGrid->id'>";
		   echo "<td> $isiGrid->id </td>"; 
		   echo "<td> $isiGrid->sekuritascode </td>";
		   echo "<td> $isiGrid->stockcode </td>";
		   echo "<td> $isiGrid->security_code </td>" ;
		   echo "<td> $isiGrid->symbol </td>";
		   echo "<td> $isiGrid->buyingprice </td>";
		   echo "<td class='updateable'> $isiGrid->currprice </td>";
		   echo "<td> $isiGrid->avgprice</td>";
		   echo "<td> $isiGrid->cutlossprice </td>";
		   echo "</tr>";
		   $n++;
		 } 
		?>
	  </tbody>    

	</table>
	<br/>
	<?php echo anchor("admin_dailytrans", "Back", "class='button' style='color:#f8f8f8'"); ?>
	<input type="submit" value="         Process       " class="button"/>
</form>
<div class="clear"></div>
</div>
<?php # } ?>